/*
 * @Descripttion: 
 * @version: V1.0.0
 * @Author: LeonHe
 * @Date: 2021-05-18 21:45:02
 * @LastEditTime: 2021-05-23 23:00:47
 */
#ifndef __SVPWM_H_
#define __SVPWM_H_

#define I32MATH_F2I ((int)0x7FFFFFFF)

typedef struct StPwmDuty
{
    int16_t pwmDutyPresent[3];
}StPwmDuty_t;


void svpwmTheta2ab16(int16_t theta32, int16_t k, int16_t* alpha, int16_t* beta);
void svpwmCal(int16_t alpha, int16_t beta, StPwmDuty_t* output);
#endif
